package com.maple.common.ext

/**
 * Tip:
 * Create by SeVen on 2024/3/29 10:37
 */
internal fun Int.clamp(min: Int, max: Int): Int {
    if (this < min) return min
    return if (this > max) max else this
}